package dao.assinatura;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import model.Permissao;
import model.UsuarioIF;

public interface PermissaoDAO {

	 public void addPermissao(Permissao permissao) throws SQLException;

	 public void updatePermissao(Permissao permissao) throws SQLException;

	 public void deletePermissao(int id) throws SQLException;

	 public Permissao getPermissaoById(int id) throws SQLException;

	 public ArrayList<Permissao> getPermissoes() throws SQLException;
	 
	 public ArrayList<Permissao> getPermissoesUsuario(UsuarioIF usuario) throws SQLException;
	
	 public void addPermissoesUsuario(UsuarioIF usuario,ArrayList<Permissao> permissoes) throws SQLException;

	 public void deletePermissoesUsuario(UsuarioIF usuario) throws SQLException;
}
